package com.feiyi.app.bean;

/**
 * 作者 : wlt
 * 创建时间:  2018-07-19
 * QQ : 1346947404
 * 邮箱:wanglt_android@163.com
 * 类说明:用户注册的返回值实体类
 * In me the tiger sniffs the rose
 */

public class RegisterBean {


    /**
     * data : {"session":{"sid":"dee82b12017e271f5d70c6620ea6d61750ff9087","uid":"3"},"user":{"id":"3","name":"xu","rank_name":"注册用户","rank_level":0,"collection_num":"0","email":"522050@qq.com","order_num":{"await_pay":"0","await_ship":"0","shipped":"0","finished":"0"}}}
     * status : {"succeed":0,"error_code":11,"error_desc":"用户名或email已使用"}
     */

    private DataBean data;
    private StatusBean status;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public StatusBean getStatus() {
        return status;
    }

    public void setStatus(StatusBean status) {
        this.status = status;
    }

    public static class DataBean {
        /**
         * session : {"sid":"dee82b12017e271f5d70c6620ea6d61750ff9087","uid":"3"}
         * user : {"id":"3","name":"xu","rank_name":"注册用户","rank_level":0,"collection_num":"0","email":"522050@qq.com","order_num":{"await_pay":"0","await_ship":"0","shipped":"0","finished":"0"}}
         */

        private SessionBean session;
        private UserBean user;

        public SessionBean getSession() {
            return session;
        }

        public void setSession(SessionBean session) {
            this.session = session;
        }

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public static class SessionBean {
            /**
             * sid : dee82b12017e271f5d70c6620ea6d61750ff9087
             * uid : 3
             */

            private String sid;
            private String uid;

            public String getSid() {
                return sid;
            }

            public void setSid(String sid) {
                this.sid = sid;
            }

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            @Override
            public String toString() {
                return "SessionBean{" +
                        "sid='" + sid + '\'' +
                        ", uid='" + uid + '\'' +
                        '}';
            }
        }

        public static class UserBean {
            /**
             * id : 3
             * name : xu
             * rank_name : 注册用户
             * rank_level : 0
             * collection_num : 0
             * email : 522050@qq.com
             * order_num : {"await_pay":"0","await_ship":"0","shipped":"0","finished":"0"}
             */

            private String id;
            private String name;
            private String rank_name;
            private int rank_level;
            private String collection_num;
            private String email;
            private String avatar;
            private String sex;
            private String birthday;
            private OrderNumBean order_num;

            public String getSex() {
                return sex;
            }

            public void setSex(String sex) {
                this.sex = sex;
            }

            public String getBirthday() {
                return birthday;
            }

            public void setBirthday(String birthday) {
                this.birthday = birthday;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getRank_name() {
                return rank_name;
            }

            public void setRank_name(String rank_name) {
                this.rank_name = rank_name;
            }

            public int getRank_level() {
                return rank_level;
            }

            public void setRank_level(int rank_level) {
                this.rank_level = rank_level;
            }

            public String getCollection_num() {
                return collection_num;
            }

            public void setCollection_num(String collection_num) {
                this.collection_num = collection_num;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }

            public OrderNumBean getOrder_num() {
                return order_num;
            }

            public void setOrder_num(OrderNumBean order_num) {
                this.order_num = order_num;
            }

            public static class OrderNumBean {
                /**
                 * await_pay : 0
                 * await_ship : 0
                 * shipped : 0
                 * finished : 0
                 */

                private String await_pay;
                private String await_ship;
                private String shipped;
                private String finished;

                public String getAwait_pay() {
                    return await_pay;
                }

                public void setAwait_pay(String await_pay) {
                    this.await_pay = await_pay;
                }

                public String getAwait_ship() {
                    return await_ship;
                }

                public void setAwait_ship(String await_ship) {
                    this.await_ship = await_ship;
                }

                public String getShipped() {
                    return shipped;
                }

                public void setShipped(String shipped) {
                    this.shipped = shipped;
                }

                public String getFinished() {
                    return finished;
                }

                public void setFinished(String finished) {
                    this.finished = finished;
                }

                @Override
                public String toString() {
                    return "OrderNumBean{" +
                            "await_pay='" + await_pay + '\'' +
                            ", await_ship='" + await_ship + '\'' +
                            ", shipped='" + shipped + '\'' +
                            ", finished='" + finished + '\'' +
                            '}';
                }
            }

            @Override
            public String toString() {
                return "UserBean{" +
                        "id='" + id + '\'' +
                        ", name='" + name + '\'' +
                        ", rank_name='" + rank_name + '\'' +
                        ", rank_level=" + rank_level +
                        ", collection_num='" + collection_num + '\'' +
                        ", email='" + email + '\'' +
                        ", order_num=" + order_num +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "session=" + session +
                    ", user=" + user +
                    '}';
        }
    }

    public static class StatusBean {
        /**
         * succeed : 0
         * error_code : 11
         * error_desc : 用户名或email已使用
         */

        private int succeed;
        private int error_code;
        private String error_desc;

        public int getSucceed() {
            return succeed;
        }

        public void setSucceed(int succeed) {
            this.succeed = succeed;
        }

        public int getError_code() {
            return error_code;
        }

        public void setError_code(int error_code) {
            this.error_code = error_code;
        }

        public String getError_desc() {
            return error_desc;
        }

        public void setError_desc(String error_desc) {
            this.error_desc = error_desc;
        }

        @Override
        public String toString() {
            return "StatusBean{" +
                    "succeed=" + succeed +
                    ", error_code=" + error_code +
                    ", error_desc='" + error_desc + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "RegisterBean{" +
                "data=" + data +
                ", status=" + status +
                '}';
    }
}
